<?php
/**
 * pagetemplate.php
 * Created on 2015-03-26
 * Create by yuebin
 */
namespace haibao\cms\model\data\site;

class PageTemplate extends \haibao\cms\model\data\Base {

	const STATUS_ENABLE = 1;
	const STATUS_DIS_ENABLE = 0;
	
	const PAGEABLE_ALL = -1;
	const PAGEABLE_NONE = 0;
	const PAGEABLE_PAGE = 1;
	/**
	 * 模版名称
	 */
	public $TemplateName;
	/**
	 * 模版地址
	 */
	public $TemplatePath;
	/**
	 * 模版内容
	 */
	public $Content;
	/**
	 * 模版状态
	 */

	public $Status = 1;

	/**
	 * 是否分页
	 */
	public $Pageable = 0;
	
	public $CreateBy;
	public $CreateTime;
	public $UpdateTime;
	public $SiteChannelTmp;
	
	public function __construct() {
		parent::__construct();
		$this->stringField ( 'TemplateName', 'TemplateName', true );
		$this->stringField ( 'TemplatePath', 'TemplatePath' );
		$this->stringField ( 'Content', 'Content', true );
		$this->intField ( 'Status', 'Status' );
		$this->intField ( 'CreateBy', 'CreateBy',true );
		$this->intField ( 'CreateTime', 'CreateTime',true );
		$this->intField ( 'UpdateTime', 'UpdateTime' ,true);
		$this->intField ( 'Pageable', 'Pageable');
		
		$this->setTableName ( 'PageTemplate' );
	}

}